<%--
  Created by IntelliJ IDEA.
  User: GUYUE
  Date: 2022/11/24
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <title>订单管理 商品详情</title>
    <base href="<%=basePath%>">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shiv 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 -->
    <!-- 注意： 如果通过 file://  引入 Respond.js 文件，则该文件无法起效果 -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<table class="table table-striped">
    <caption>商品详情</caption>
    <thead>
    <tr>
        <th>商品编号</th>
        <th>商品数量</th>
        <th>商品价格</th>
        <th>商品预览</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${foodsDetail}" var="foods">
        <tr>
            <td>${foods.food_id}</td>
            <td>${foods.number}</td>
            <td>${foods.money}</td>
            <td><img src="${foods.photo}" style="width: 50px;height: 50px"></td>
        </tr>
    </c:forEach>
    </tbody>
</table>

<!-- jQuery (Bootstrap 的 JavaScript 插件需要引入 jQuery) -->
<script src="https://code.jquery.com/jquery.js"></script>
<!-- 包括所有已编译的插件 -->
<script src="../assets/js/bootstrap.min.js"></script>
</body>
</html>
